# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-markovify
_pkgname=markovify
pkgver=0.9.4
pkgrel=5
pkgdesc='A simple, extensible Markov chain generator. Uses include generating random semi-plausible sentences based on an existing text.'
arch=('any')
url='https://pypi.org/project/markovify/#files'
license=('MIT')
depends=('python' 'python-unidecode')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ba05812114788c6572501a03fcc3b983ed78c5ecd65442f4d5684d4a61cab9086a003aa351c2fda72949272ad6d9a08aa5f045eb8dabd09878272bea7ff2ab30')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

